package cqrtplm.mapper;

import com.hustcad.plm.pdm.common.model.vo.search.ResultEntityVO;
import com.ty.basic.entity.IdentifierEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Repository
public interface CADDocumentMapper {
    String getLastDocByNumber(@Param("number") String number, @Param("version") String version);

    String getLastCADByNumber(@Param("number") String number, @Param("version") String version);

    List<IdentifierEntity> queryDocIdByCadId(@Param("cadDocOidList") List<BigInteger> cadDocOidList,
                                             @Param("typename") String typename);

    List<ResultEntityVO> getHistoryCadInfo(@Param("keyword") String keyword, @Param("propertyValue") String propertyValue);
}
